﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Web.UI;

namespace htmlRender
{
    public class Hidden : System.Web.UI.Control
    {
        public override string ID { get; set; }
        public string Value { get; set; }
        protected override void Render(HtmlTextWriter writer)
        {
            writer.AddAttribute(HtmlTextWriterAttribute.Type, "hidden");
            writer.AddAttribute(HtmlTextWriterAttribute.Name, this.ID);
            writer.AddAttribute(HtmlTextWriterAttribute.Value, this.Value);
            writer.RenderBeginTag(HtmlTextWriterTag.Input);
            writer.RenderEndTag();
        }
    }
}
